<?php
declare(strict_types=1);

namespace app\shop\logic;

use app\shop\model\task\PaidanModel;

class PaidanLogic extends BaseLogic
{
    public function __construct()
    {
        $this->model = new PaidanModel();
    }
    /**
     * 视频列表
     * @param array $params
     * @return array|Paginator
     */
    public function list(array $params)
    {

        $query = PaidanModel::getQuery();
        $query->where([
            ['shop_user_id', '=', $params['user_id']],
        ]);
        $query->order(['id' => 'desc']);

        return PaidanModel::paginateListQuery($query);
    }

}